home *** CD-ROM | disk | FTP | other *** search
/ Champak 54 / Vol 54.iso / games / gardenin.swf / scripts / DefineButton2_602 / BUTTONCONDACTION on(release).as
Encoding:
Text File  |  2007-09-27  |  916 b   |  33 lines

  1. on(release){
  2.    if(this.flower_ok)
  3.    {
  4.       if(this.bugs_mc._currentframe == 11)
  5.       {
  6.          if(_parent.mc._currentframe == 3 && _parent.mc.tool_mc._currentframe == 4)
  7.          {
  8.             this.bugs_mc.play();
  9.             _parent.cost_point7.play();
  10.             _parent.mc.gotoAndStop(1);
  11.             this.stop();
  12.          }
  13.       }
  14.       else if(this.bugs_mc._currentframe == 1)
  15.       {
  16.          if(this.tonic_mc._currentframe == 1)
  17.          {
  18.             if(_parent.mc._currentframe == 3 && _parent.mc.tool_mc._currentframe == 5)
  19.             {
  20.                this.tonic_mc.play();
  21.                _parent.cost_point8.play();
  22.                _parent.mc.gotoAndStop(1);
  23.             }
  24.          }
  25.       }
  26.       if(_parent.mc._currentframe == 3 && _parent.mc.tool_mc._currentframe == 1)
  27.       {
  28.          this.gotoAndPlay("cut");
  29.          _parent.mc.gotoAndStop(1);
  30.       }
  31.    }
  32. }
  33.